a=[[ 0.7959199 ]
 [ 0.91837001]
 [ 0.69388002]
 [ 0.40816   ]
 [ 0.67347002]
 [ 0.22448961]
 [ 1.        ]
 [ 0.06122401]
 [ 0.51020002]
 [ 0.77551007]
 [ 0.38775998]
 [ 0.71429002]
 [ 0.18367   ]
 [ 0.75510001]
 [ 0.34693998]
 [ 0.55102015]
 [ 0.14286   ]
 [ 0.95918   ]
 [ 0.85713995]
 [ 0.73468995]
 [ 0.2040804 ]
 [ 0.26530996]
 [ 0.46938992]
 [ 0.65306008]
 [ 0.53060997]
 [ 0.04081593]
 [ 0.42856997]
 [ 0.87755001]
 [ 0.32652998]
 [ 0.61224008]
 [ 0.16327   ]
 [ 0.93878007]
 [ 0.12244999]
 [ 0.02040803]
 [ 0.89795995]
 [ 0.24490002]
 [ 0.08163299]
 [ 0.30612001]
 [ 0.59184003]
 [ 0.83673   ]
 [ 0.57143003]
 [ 0.36734998]
 [ 0.81633008]
 [ 0.28571007]
 [ 0.10203996]
 [ 0.44897991]
 [ 0.97958994]
 [ 0.63265002]
 [ 0.48980004]]
;

T = [2	2	15	8	18	3	2;
16	4	19	19	13	11	6;
20	19	16	11	7	11	8;
12	15	12	9	18	7	3;
11	5	10	18	7	10	1;
5	19	8	13	20	4	20;
1	16	12	7	13	7	18;];

count = 1;
for i = 1: 7
    for j = 1:7
        a(count,2) = i;
        a(count,3) = j;
        count = count + 1 ;
    end
end

for i = 1:49 
    for j = i : 49
        if a(i,1) > a(j,1)
            mid = a(i,:);
            a(i,:) = a(j,:);
            a(j,:) = mid;
        end
    end
end

for i = 1:49
    Xstr{i} = [ a( i, 2 ), a( i, 3 ) ,]
end
[Fit,Y1p,Y2p,Y3p]=makespan(T,Xstr,1)


